minetest.register_craftitem('unicorn:feather', {
   description = 'Unicorn Feather',
   inventory_image = 'unicorn_feather.png',
   stack_max = 20
})

minetest.register_craftitem('unicorn:horn', {
   description = 'Unicorn Horn',
   inventory_image = 'unicorn_horn.png',
   stack_max = 20
})

minetest.register_craftitem('unicorn:apple', {
   description = 'Unicorn Treat',
   inventory_image = 'unicorn_apple.png',
   on_use = function(itemstack, user, pointed_thing)
      local hp = user:get_hp()
      user:set_hp(hp+20)
      itemstack:take_item(1);
      return itemstack
   end
})
